home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABUSESRC.ZIP / AbuseSrc / macabuse / inc / points.hpp < prev    next >
C/C++ Source or Header  |  1997-05-20  |  521b  |  25 lines

  1. #ifndef __POINTS_HPP_
  2. #define __POINTS_HPP_
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include "jmalloc.hpp"
  6. #include "specs.hpp"
  7.  
  8. class point_list
  9. {
  10. public :
  11.   unsigned char tot;
  12.   unsigned char *data;
  13.   point_list(unsigned char how_many, unsigned char *Data);
  14.   point_list() { tot=0; data=NULL; }
  15.   point_list(bFILE *fp);
  16.   void save(bFILE *fp);
  17.   long size() { return 1+2*tot; }
  18.   point_list *copy() { return new point_list(tot,data); }
  19.   ~point_list() { if (tot) { jfree(data); } }
  20. } ;
  21.  
  22. #endif
  23.  
  24.  
  25.